<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <!--<script type="text/javascript" src="flowplayer-3.0.5.min.js"></script>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    -->

    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
    <script src="../flowplayer-3.2.8.min.js"></script>
    <script src="../../jsplugins/playlist/flowplayer.playlist.js"></script>


	<!-- page title -->
	<title>Minimal Flowplayer setup</title>

</head><body>

	<div id="page">

        <a
                     href="http://e1h13.simplecdn.net/flowplayer/flowplayer.flv"
                     style="display:block;width:440px;height:247px"
                     id="player">
                </a>
<!-- the playlist -->
<div id="myplaylist">
	<div>${title}</div>
</div>

<script>
 $(function() {
   
    flowplayer("player", "../build/flowplayer.swf",
    {
        log: { level: 'debug', filter: 'org.flowplayer.controller.*, org.flowplayer.rtmp.*' },
        clip: {
            provider: 'rtmp'
            //autoPlay: false
        },

        /*onStart: function() {
            if (added) return;
            added = true;
            var playlist = [];
            playlist.push({ url: 'rtmp://s3b78u0kbtx79q.cloudfront.net/cfx/st/mp4:bbb-400'});
            playlist.push({ url: 'rtmp://stream.blacktrash.org/cfx/st/ccc'});
            $f().stop();
            $f().setPlaylist(playlist);
            $f().play(0);
            //$("#myplaylist").append("<a href=\"rtmp://s3b78u0kbtx79q.cloudfront.net/cfx/st/mp4:bbb-400\"> BBB</a><br>");
            //$f().addClip({url: 'rtmp://s3b78u0kbtx79q.cloudfront.net/cfx/st/mp4:bbb-400'});
            //$("#myplaylist").append("<a href=\"rtmp://stream.blacktrash.org/cfx/st/ccc\"> CCC</a>");

            //$f().addClip({url: 'rtmp://stream.blacktrash.org/cfx/st/ccc'});

        }, */

        playlist: [
            { url: 'mp4:bbb-400', title: "first" }
            //{ url: 'mp4:bbb-800', title: "second" },
			//{ url: 'mp4:bbb-1200', title: "third" }
        ],

        plugins: {
            rtmp: {
                 url:'../build/flowplayer.rtmp.swf',
				 netConnectionUrl: "rtmp://s3b78u0kbtx79q.cloudfront.net/cfx/st/"
            },

            controls: {
                playlist: true
            }
        }

    }).playlist("#myplaylist", { loop: true, continuousPlay: false});


</script>
	</div>

</body></html>